<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p1_变换与过渡</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: red;
            margin: 100px auto 0;
            transition: 1s;
        }
        div:hover {

            background-color: blue;
            transform:scale(-2); /* 变换: 缩放 n>1放大n倍  n=1 大小不变  0-1之间 缩小n倍 ,0 缩小到看不见*/
            transform: rotate(-270deg) scale(2);
            border-radius: 50px;

        }
    </style>
</head>
<body>
<div></div>
</body>
</html>